package com.dianping.cat.home.utilization.transform;

import com.dianping.cat.home.utilization.IVisitor;
import com.dianping.cat.home.utilization.entity.ApplicationState;
import com.dianping.cat.home.utilization.entity.Domain;
import com.dianping.cat.home.utilization.entity.MachineState;
import com.dianping.cat.home.utilization.entity.UtilizationReport;


public abstract class BaseVisitor
  implements IVisitor
{
  public void visitApplicationState(ApplicationState applicationState) {}

  public void visitDomain(Domain domain) {
/* 16 */     for (MachineState machineState : domain.getMachineStates().values()) {
/* 17 */       visitMachineState(machineState);
    }

/* 20 */     for (ApplicationState applicationState : domain.getApplicationStates().values()) {
/* 21 */       visitApplicationState(applicationState);
    }
  }



  public void visitMachineState(MachineState machineState) {}


  public void visitUtilizationReport(UtilizationReport utilizationReport) {
/* 31 */     for (Domain domain : utilizationReport.getDomains().values())
/* 32 */       visitDomain(domain); 
  }
}


/* Location:              /Users/hanfei/Documents/apache-tomcat-9.0.24/webapps/cat/WEB-INF/classes/!/com/dianping/cat/home/utilization/transform/BaseVisitor.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       1.0.7
 */